<template>
  <div>
    <el-table
      v-loading="$store.state.loading"
      :data="$store.state.user.userList"
      style="width: 100%"
    >
      <el-table-column label="注册时间" width="200">
        <template slot-scope="scope">
          <i class="el-icon-time"></i>
          <span style="margin-left: 10px">{{ scope.row.createdTime | date}}</span>
        </template>
      </el-table-column>
      <el-table-column label="用户账号" width="140">
        <template slot-scope="scope">{{scope.row.userName}}</template>
      </el-table-column>
      <el-table-column label="用户生日" width="100">
        <template slot-scope="scope">{{scope.row.Birthday}}</template>
      </el-table-column>
      <el-table-column label="用户年龄" width="90">
        <template slot-scope="scope">{{scope.row.age}}</template>
      </el-table-column>
      <el-table-column label="用户性别" width="90">
        <template slot-scope="scope">{{scope.row.sex}}</template>
      </el-table-column>
      <el-table-column label="用户职业" width="80">
        <template slot-scope="scope">{{scope.row.job}}</template>
      </el-table-column>
      <el-table-column label="用户喜好" width="300">
        <template slot-scope="scope">{{scope.row.like}}</template>
      </el-table-column>
    </el-table>
    <PageInfo action-name="getUserlist"></PageInfo>
  </div>
</template>

<script>
export default {
  name: "adminPoetry"
};
</script>
